﻿using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.Mvvm.Interfaces;
using Microsoft.Practices.Prism.StoreApps;
using Microsoft.Practices.Prism.StoreApps.Interfaces;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Text;

namespace SuspendApp.ViewModels
{
    public class MainPageViewModel : ViewModel
    {
        private string input;

        [RestorableState]
        public string Input
        {
            get { return this.input; }
            set { this.SetProperty(ref this.input, value); }
        }

        [Dependency]
        public INavigationService NavigationService { get; set; }

        public DelegateCommand GotoNextCommand { get; private set; }

        public MainPageViewModel()
        {
            this.GotoNextCommand = new DelegateCommand(() => this.NavigationService.Navigate("Next", null));
        }
    }
}
